package cn.myblog.ainblog.mapper;

import cn.myblog.ainblog.model.LogModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Dovaior
 * @Description
 * @create 2021-05-03 15:46
 **/
@Repository
public interface LogMapper extends BaseMapper<LogModel> {
    //重写了父类的方法，实现倒叙输出
    List<LogModel> selectList();
    //以下方法分别查询当日的各个种类的操作记录次数
    int queryArticleCount();
    int queryCategoryCount();
    int queryTagCount();
    int queryUserCount();
}
